package com.micro.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnProperty(name = "eureka.client.enabled", havingValue = "true", matchIfMissing = false)
@EnableDiscoveryClient
@EnableFeignClients
public class MicroserviceConfig {
    // 当 eureka.client.enabled=true 时启用微服务功能
}
